package com.usian.category.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@TableName("pms_category")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category implements Serializable {
    private int catId;
    private String name;
    private int parentCid;
    private int sort;

    @TableField(exist = false)
    private List<Category> children;
}
